import service from '@/utils/request'
// @Tags CasSuspects
// @Summary 创建casSuspects表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasSuspects true "创建casSuspects表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /casSuspects/createCasSuspects [post]
export const createCasSuspects = (data) => {
  return service({
    url: '/casSuspects/createCasSuspects',
    method: 'post',
    data
  })
}

// @Tags CasSuspects
// @Summary 删除casSuspects表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasSuspects true "删除casSuspects表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /casSuspects/deleteCasSuspects [delete]
export const deleteCasSuspects = (params) => {
  return service({
    url: '/casSuspects/deleteCasSuspects',
    method: 'delete',
    params
  })
}

// @Tags CasSuspects
// @Summary 批量删除casSuspects表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除casSuspects表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /casSuspects/deleteCasSuspects [delete]
export const deleteCasSuspectsByIds = (params) => {
  return service({
    url: '/casSuspects/deleteCasSuspectsByIds',
    method: 'delete',
    params
  })
}

// @Tags CasSuspects
// @Summary 更新casSuspects表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasSuspects true "更新casSuspects表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /casSuspects/updateCasSuspects [put]
export const updateCasSuspects = (data) => {
  return service({
    url: '/casSuspects/updateCasSuspects',
    method: 'put',
    data
  })
}

// @Tags CasSuspects
// @Summary 用id查询casSuspects表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CasSuspects true "用id查询casSuspects表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /casSuspects/findCasSuspects [get]
export const findCasSuspects = (params) => {
  return service({
    url: '/casSuspects/findCasSuspects',
    method: 'get',
    params
  })
}

// @Tags CasSuspects
// @Summary 分页获取casSuspects表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取casSuspects表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /casSuspects/getCasSuspectsList [get]
export const getCasSuspectsList = (params) => {
  return service({
    url: '/casSuspects/getCasSuspectsList',
    method: 'get',
    params
  })
}
// @Tags CasSuspects
// @Summary 获取数据源
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /casSuspects/findCasSuspectsDataSource [get]
export const getCasSuspectsDataSource = () => {
  return service({
    url: '/casSuspects/getCasSuspectsDataSource',
    method: 'get',
  })
}

// @Tags CasSuspects
// @Summary 不需要鉴权的casSuspects表接口
// @accept application/json
// @Produce application/json
// @Param data query suspectReq.CasSuspectsSearch true "分页获取casSuspects表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /casSuspects/getCasSuspectsPublic [get]
export const getCasSuspectsPublic = () => {
  return service({
    url: '/casSuspects/getCasSuspectsPublic',
    method: 'get',
  })
}
